/**
 * Application���ܣ�
 *	 ��ʼ��Ӧ�ó����������ĸ�����ص���
 * 	 ��ͼ���
 *   �������Ӧ�ó�������岼��
 * ִ�й�̣�
 *   ��ʼ������ࣨcontrollers��-> ִ��launch����->��Ⱦ
 *     
 */

Ext.application({
    requires: ['Ext.container.Container'],
    name: 'Risk',
    appFolder: 'app',
    controllers:[
        'areaInfo.AreaMangeController',
        'rm.RmController',
        'ru.RuController',
    	'ra.RaController',
    	'rc.RcController',
    	'rb.RbController',
        'rv.RvController',
    	'AppController',
    	'MainTabController',
    	'tree.TreeController'
    ],
    //应用程序入口 加载主试图
    launch: function() {
    	//console.log('launch is invoking !');
   		Ext.create('Ext.container.Container', {
		    layout: 'border',
		    renderTo:document.getElementById("estimate") ,
	        width:'100%',
	        height:'100%',
	        
		    autoScroll :true,
		    items: [ {
		        region: 'center',
		        itemId:"center",
		        xtype: 'panel', // TabPanel itself has no title
		        layout:'border',
		        items: [
						{
							//tree
							itemId:'west',
						    region: 'west',
						    xtype: 'trees',
						    collapsible: true,
						    title: '区域信息',
						    width: 160//
						},
						{
					        region: 'center',
					        itemId:"center",
					        xtype: 'panel', // TabPanel itself has no title
					        autoScroll :true,
					        items: [{
					                	title:'参数信息',
					                	xtype: 'maintab',
					                	disabled:true
					                }
					             ]
					  }
		        ]
		    }]
		});
    }
});